package com.dc.system.service;

import com.dc.common.model.BaseModel;
import com.dc.system.model.SysRole;

import javax.servlet.http.HttpServletRequest;

public interface RoleService {
    //插入角色
    BaseModel insertRole(BaseModel baseModel, SysRole role, String permissionStr, String subPermissionStr,
                         HttpServletRequest request) throws Exception;
    //获取权限菜单
    BaseModel getPermissionMenus(BaseModel baseModel) throws Exception;
    //查询用户总系统菜单
    BaseModel getUserMenus(BaseModel baseModel, HttpServletRequest request) throws Exception;
    //查询用户子系统菜单
    BaseModel getUserSubMenusByCodeNum(BaseModel baseModel, HttpServletRequest request, String codeNum) throws Exception;
    //查询角色id和name的下拉列表
    BaseModel getRoleIdAndNames(BaseModel baseModel) throws Exception;
    //列表/高级查询角色
    BaseModel getRoles(BaseModel baseModel, SysRole role, HttpServletRequest request) throws Exception;
    //修改角色
    BaseModel updateRole(BaseModel baseModel, SysRole role, String permissionStr, String subPermissionStr, HttpServletRequest request) throws Exception;

    BaseModel getPermissionByRoleId(BaseModel baseModel, SysRole role) throws Exception;

    BaseModel delRole(BaseModel baseModel, SysRole role, HttpServletRequest request) throws Exception;
}
